package top.coolrainly.module.resource.controller.admin.content.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - Web3D 资源 内容新增/修改 Request VO")
@Data
public class ResourceContentSaveReqVO {

    @Schema(description = "内容id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26283")
    private Long id;

    @Schema(description = "分组id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6762")
    @NotNull(message = "分组id不能为空")
    private Long groupId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "资源地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "资源地址不能为空")
    private String url;

}